this._grabHelper.addActor(corner.actor);
},
+ _resetNotificationLeftTimeout: function() {
+ this._useLongerNotificationLeftTimeout = false;
+ if (this._notificationLeftTimeoutId) {
+ Mainloop.source_remove(this._notificationLeftTimeoutId);
+ this._notificationLeftTimeoutId = 0;
+ this._notificationLeftMouseX = -1;
+ this._notificationLeftMouseY = -1;
+ }
+ },
+
_onNotificationHoverChanged: function() {
if (this._notificationWidget.hover == this._notificationHovered)
return;
// No dwell inside notifications at the bottom of the screen
this._cancelTrayDwell();
- this._useLongerNotificationLeftTimeout = false;
- if (this._notificationLeftTimeoutId) {
- Mainloop.source_remove(this._notificationLeftTimeoutId);
- this._notificationLeftTimeoutId = 0;
- this._notificationLeftMouseX = -1;
- this._notificationLeftMouseY = -1;
- }
+ this._resetNotificationLeftTimeout();
if (this._showNotificationMouseX >= 0) {
let actorAtShowNotificationPosition =
this._notificationUnfocusedId = 0;
}
- this._useLongerNotificationLeftTimeout = false;
- if (this._notificationLeftTimeoutId) {
- Mainloop.source_remove(this._notificationLeftTimeoutId);
- this._notificationLeftTimeoutId = 0;
- this._notificationLeftMouseX = -1;
- this._notificationLeftMouseY = -1;
- }
+ this._resetNotificationLeftTimeout();
if (animate) {
this._tween(this._notificationWidget, '_notificationState', State.HIDDEN,